package com.example.demo.design.demo19_composite;

/**
 * Created by 蔡超 on 2018/10/4.
 */
public class FinanceDept extends Company {

    public FinanceDept(String name) {
        super(name);
    }

    @Override
    void add(Company company) {

    }

    @Override
    void remove(Company company) {

    }

    @Override
    void display() {
        System.out.println(super.getName());
    }
}
